<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>输入成绩</title>
    <script>
        function btn() {

            while (1) {
                let score = prompt("请输入成绩");
                if (isNaN(score)) {
                    alert("请输入数字");
                    continue;
                } else {
                    score = parseInt(score);
                }
                if (score >= 100) {
                    document.write("你的成绩为：" + score + "<br>" + "超出了100的范围")
                } else {
                    document.write("你的成绩为：" + score + "<br>" + "在100的范围")
                }
                break;
            }
        }
        btn();
    </script>
</head>
<body>

</body>
</html>